﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JXT.PrimaryKey.Batman.Domain.Repositories.MySql.Expressions
{
    internal class MySqlEnvironment : IDatabaseEnvironment {
        #region IDatabaseEnvironment Members

        public string LeftTag {
            get { return "`"; }
        }

        public string RightTag {
            get { return "`"; }
        }

        public char ParameterChar {
            get { return '@'; }
        }

        public string LessThanTag {
            get { return "<"; }
        }

        public string LessThanOrEqualTag {
            get { return "<="; }
        }

        public string GreaterThanTag {
            get { return ">"; }
        }

        public string GreaterThanOrEqualTag {
            get { return ">="; }
        }

        public string EqualTag {
            get { return "="; }
        }

        public string NotEqualTag {
            get { return "<>"; }
        }

        public string AndTag {
            get { return "AND"; }
        }

        public string OrTag {
            get { return "OR"; }
        }

        public string NotTag {
            get { return "!"; }
        }

        public string NewRowIdFunction {
            get { return "@@identity;"; }
        }

        public bool IsSupportLimit {
            get { return true; }
        }

        public bool IsSupportTop {
            get { return false; }
        }

        #endregion
    }
}
